<p><a href="javascript:void(null);" onclick="ajaxRequestttt('hm-delivery-volume','add','offer','<?php echo $this->offer_id; ?>','addform');">Adicionar Locais de Entrega</a></p>
<?php if($this->rowCount > 0) { ?>
<table>
	<tr>
		<td>Volume</td>
		<td>Data de Entrega</td>
		<td>Tipo de Entrega</td>
		<td colspan="2">Local de Entrega</td>
	</tr>
	<?php foreach($this->view_list as $view_list) : ?>
		<tr>
			<td><?php echo $this->escape($view_list->volume); ?></td>
			<td><?php echo date('d/m/Y', strtotime($this->escape($view_list->delivery_date))); ?></td>
			<td><?php echo $this->escape($view_list->title); ?></td>
			<td><?php echo $this->escape($view_list->name); ?></td>
			<td>
				<a href="<?php echo $this->url(array('action'=>'edit', 'volume_id'=>$view_list->volume_id));?>"><img src="<?php echo $this->baseUrl();?>/public/images/ico_edit.png" alt="Editar" title="Editar" /></a>
				<a href="<?php echo $this->url(array('action'=>'delete', 'volume_id'=>$view_list->volume_id));?>"><img src="<?php echo $this->baseUrl();?>/public/images/ico_delete.png" alt="Excluir" title="Excluir" /></a>
			</td>
		</tr>
	<?php endforeach; ?>
</table>
<?php } else { ?><div class="error">Nenhuma entrega registrada.</div><?php } ?>
<div id="addform" class="hide"></div>